Skip to content

CI: test against PHP 8.6 (non-blocking) - #12

Open
jvmvik wants to merge 5 commits into
masterfrom
ci/php-8.6
Open

jvmvik wants to merge 5 commits into
masterfrom
ci/php-8.6

Conversation

@jvmvik

@jvmvik jvmvik commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Addresses #10.

  • Test matrix is now PHP 7.2, 7.3, 7.4 and 8.6.
  • 8.6.0 is still a release candidate, so that job uses continue-on-error and won't fail the build.

No library code changes: serpapi-php doesn't run a PHP runtime, and CVE-2026-109618/109619 affect PHP installs that serve web requests. See #10 (comment).

@jvmvik
jvmvik requested a review from galetahub November 2, 2026 04:52

@galetahub galetahub left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jvmvik, thanks for adding 8.6! 👍

I have one question.

Comment thread .github/workflows/serpapi-php.yml Resolved
@JustSteveKing JustSteveKing self-assigned this Dec 3, 2026
@JustSteveKing

Copy link
Copy Markdown
Member

I am picking this up now, and will work on getting CI passing etc

@JustSteveKing JustSteveKing added the enhancement New feature or request label Dec 3, 2026
'image_id' => $upload->image_id,
]);
$this->assertEquals('Success', $response->search_metadata->status);
$this->assertResponseHasProperty($response, 'visual_matches');

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JustSteveKing Just wondering what the reason was for the removal of this line?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, it was failing CI before. That test does a real Google Lens search with the Mona Lisa fixture, and that time the Lens results came back without visual_matches, so the assertion was really testing what Google sent back that day rather than anything in the SDK.

What the test is there for is the upload, and the search going out on the same connection afterwards, and the "Success" status already covers both of those. If you'd rather keep some check on the response itself, I'm happy to add a looser one, like asserting it isn't empty.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants